/* 全局样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 订单容器 */
.order-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 头部区域 */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.order-title {
    font-size: 24px;
    font-weight: 600;
    color: #1890ff;
}

.add-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.icon-plus::before {
    content: '+';
    font-weight: bold;
    font-size: 16px;
}

/* 搜索区域 */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-btn {
    background-color: #52c41a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #73d13d;
}

.clear-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

/* 错误提示 */
.error-message {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 订单列表 */
.order-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.table-wrapper {
    overflow-x: hidden;
    width: 100%;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.order-table thead {
    background-color: #fafafa;
}

.order-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-name {
    max-width: 200px;
    font-weight: 500;
    color: #333;
}

.order-code {
    font-family: 'Courier New', monospace;
    color: #666;
}

.code-highlight {
    background-color: #f6ffed;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #b7eb8f;
}

.user-id {
    color: #666;
}

/* 支付状态样式 */
.status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-failed {
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.status-pending {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffe58f;
}

.status-canceled {
    background-color: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.status-aftersale {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.view-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}


.view-btn:hover {
    background-color: #40a9ff;
}

.view-btn1 {
    background-color: #52c41a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.view-btn1:hover {
    background-color: #81d258;
    ;
}


.delete-btn {
    background-color: #fff;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: #fff2f0;
    border-color: #ff4d4f;
}

/* 空状态提示 */
.empty-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #8c8c8c;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-tip p {
    margin: 4px 0;
    font-size: 14px;
}

/* 分页组件样式 */
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 16px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* antd分页组件样式覆盖 */
.pagination-wrapper .ant-pagination {
    margin: 0;
}

.pagination-wrapper .ant-pagination-item {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-wrapper .ant-pagination-item:hover {
    border-color: #40a9ff;
    transform: translateY(-1px);
}

.pagination-wrapper .ant-pagination-item-active {
    border-color: #1890ff;
    background-color: #1890ff;
}

.pagination-wrapper .ant-pagination-item-active:hover {
    border-color: #40a9ff;
    background-color: #40a9ff;
}

.pagination-wrapper .ant-pagination-prev:hover .ant-pagination-item-link,
.pagination-wrapper .ant-pagination-next:hover .ant-pagination-item-link {
    border-color: #40a9ff;
    color: #40a9ff;
}

/* 详情弹窗样式 - 现代UI设计 */
.order-detail-modal {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15) !important;
}

.order-detail-modal .ant-modal-content {
    border-radius: 16px !important;
    overflow: hidden;
    border: none !important;
}

.order-detail-modal .ant-modal-header {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%) !important;
    color: white !important;
    border: none !important;
    padding: 20px 24px !important;
}

.order-detail-modal .ant-modal-title {
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.order-detail-modal .ant-modal-close {
    color: white !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.order-detail-modal .ant-modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.order-detail-content {
    padding: 24px;
    background-color: #fafafa;
    min-height: 300px;
}

/* 详情头部信息 */
.detail-header {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1890ff;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.order-time {
    font-size: 14px;
    color: #8c8c8c;
}

/* 订单详情信息 */
.detail-info {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 自定义Descriptions组件样式 */
.detail-info .ant-descriptions {
    background-color: white !important;
}

.detail-info .ant-descriptions-item {
    padding: 12px 16px !important;
}

.detail-info .ant-descriptions-item-label {
    font-weight: 600 !important;
    color: #666 !important;
    font-size: 14px !important;
    width: 120px !important;
}

.detail-info .ant-descriptions-item-content {
    color: #333 !important;
    font-size: 14px !important;
}

/* 订单编号样式 */
.detail-code {
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* 地址样式 */
.detail-address {
    line-height: 1.6;
    color: #666;
    word-break: break-word;
}

/* 总价样式 - 醒目显示 */
.detail-total-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ff4d4f !important;
}

/* 底部按钮区域 */
.detail-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.detail-footer .ant-btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%) !important;
    border: none !important;
    padding: 8px 32px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
}

.detail-footer .ant-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

/* 加载状态 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 300px;
    color: #666;
}

.loading-container .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

/* 空状态 */
.empty-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 300px;
    color: #8c8c8c;
    font-size: 16px;
}

/* 状态颜色函数的样式补充 */
.status-success-color {
    color: #52c41a;
}

.status-failed-color {
    color: #ff4d4f;
}

.status-pending-color {
    color: #fa8c16;
}

.status-canceled-color {
    color: #8c8c8c;
}

.status-aftersale-color {
    color: #1890ff;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-detail-modal .ant-modal-body {
    animation: fadeIn 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-detail-modal {
        width: 90% !important;
        margin: 0 auto;
    }

    .detail-info .ant-descriptions-item-label {
        width: 100px !important;
    }

    .detail-header,
    .detail-info {
        padding: 16px;
    }
}


/* 单价样式 - 优化版本 */
.price-cell {
    color: #1890ff;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(120deg, #e6f7ff 0%, #f0f9ff 100%);
    padding: 8px 16px !important;
    border-radius: 6px;
    margin: 0 4px;
    display: inline-block;
    min-width: 80px;
    transition: all 0.3s ease;
}

/* 表格行悬停时价格高亮效果 */
.order-item:hover .price-cell {
    background: linear-gradient(120deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

/* 价格符号样式微调 */
.price-cell::before {
    content: "¥";
    font-weight: 500;
    margin-right: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .price-cell {
        font-size: 13px;
        min-width: 70px;
        padding: 6px 12px !important;
    }
}